const Main = () => import(/* webpackChunkName: "vue-main" */ '../views/main/Main.vue')
const Search = () => import(/* webpackChunkName: "vue-search" */ '../views/search/SearchPlugin.vue')
const Login = () => import(/* webpackChunkName: "vue-login" */ '../views/login/NoteLogin.vue')
const Register = () => import(/* webpackChunkName: "vue-register" */ '../views/login/NoteRegister.vue')

const route: any[] = [
  // {
  //   path: '/',
  //   redirect: "/login"
  // },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  {
    path: '/',
    name: 'main',
    component: Main,
  },
  {
    path: '/search',
    name: 'search',
    component: Search
  }
]

export default route